function debound(fn:Function,time:number){
   let id = setTimeout(()=>{},0)
    return function(...arg:any[]){
       clearTimeout(id)
        id=setTimeout(()=>{
            fn(...arg)
        },time)
    }
}
export default debound